#include <gtest/gtest.h>
#include <mockcpp/mockcpp.hpp>

int foo(int a, int b) {
  return a + b;
}

TEST(FreeFunctionTest, Foo) {
  MOCKER(foo).expects(once()).will(returnValue(0));
  EXPECT_EQ(0, foo(1, 2));
}